﻿@using System.Data
@using LiuYan.Web.Areas.Admin.Controllers

<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
    <title>美容美发  @ViewBag.Title</title>
    <script src="/Scripts/jquery-1.8.2.min.js"></script>
    <link href="~/Areas/Mall/style/css.css" rel="stylesheet" />
    <link rel="stylesheet" href="/Scripts/swiper/css/swiper.min.css">
    <script src="/Scripts/swiper/js/swiper.min.js"></script>
    @{
        var hdImg = new HdImgController().GetList1();
    }
</head>
<body>
    <header>
        <div class="swiper-container">
            <div class="swiper-wrapper">
                @{
                    foreach (DataRow row in hdImg.Rows)
                    {
                        <div class="swiper-slide">
                            <a href="@row["Url"]" target="_brank"><img src="@row["Img"]" /></a>
                        </div>
                    }
                }
               
            </div>
        </div>

        <script>
            var mySwiper = new Swiper('.swiper-container', {
                autoplay: 5000, //可选选项，自动滑动
            })
        </script>
        <div class="dhmenu" status="0">
            <a href="@Url.Action("GoodList","Goods")">商城主页</a>
            
            <a href="@Url.Action("User", "Center")">个人中心</a>
        </div>
        <div class="dh_tool">
            <a onclick="showdhmenu()">
                <img src="/Images/fz.png" />
                <p>菜单</p>
            </a>
            <a href="@Url.Action("GoodList","Goods")">
                <img src="/Images/discount.png" />
                <p>商城主页</p>
            </a>
            <a href="@Url.Action("GoodSort","Goods")">
                <img src="/Images/goodssort.png" />
                <p>商品分类</p>
            </a>
            <a href="@Url.Action("User","Center")">
                <img src="/Images/mycenter.png" />
                <p>个人中心</p>
            </a>
            <a href="@Url.Action("shopcar","Center")">
                <img src="/Images/shopcart.png" />
                <p>购物车</p>
            </a>

            <a href="/mall/order/orderlist?sid=1">
                <img src="/Images/order.png" />
                <p>我的订单</p>
            </a>
        </div>
        <script>
    function showdhmenu() {
        if ($(".dhmenu").attr("status") == 0) {
            $(".dhmenu").attr("status", "1");
            $(".dhmenu").show(500);
        } else {

            $(".dhmenu").attr("status", 0);
            $(".dhmenu").hide(500);
        }
    }
        </script>
    </header>
    <div id="body">
        @RenderBody()
    </div>
    <footer>
        
    </footer>

</body>
</html>
